const express = require('express');
const app = express();


// 解决跨域问题
const cors = require('cors');
app.use(cors());
// 挂载静态资源
app.use('/yidong02',express.static('timetable'));
app.use('/yidong02/Query',express.static('Query Student'));
// app.use('/kebiao',express.static('timetable'));
app.use(express.static('test'));
// 引入获取用户访问服务器时间 中间件
const getTime = require('./处理time中间件')
app.use(getTime);
// 引入路由模块
const router = require('./路由模块');
// 调用路由模块
app.use(router);


app.listen(8080, ()=> {
    console.log('http://200rx58782.51vip.biz')
});